{* Component: AlertList *}
<table style="width:100%;" cellspacing="0">
    <tr>
        <td>
<table cellspacing="0" width="100%" class="forumline">
                <tr>
                	<td class="row-header" colspan="2">
                	   <span>
                	      {language text="viewing_members_crush_alert"}
            	       </span>
        	       </td>
                </tr>
<tr>
	<td class="row1">

	{str_replace text="`viewing_apaging_fromrow_apaging_tor`" aPaging_fromRow="`$aPaging.fromRow`" aPaging_toRow="`$aPaging.toRow`" aPaging_totalRows="`$aPaging.totalRows`" }
        <br /><br />
        {include file="$sRootPath/_blocks/pager.html"}
        {if $bEmpty}
		<div style="padding: 20px; font-size: 10pt;"><span class="message_info">{language text="no_data_were_found"}</span> <a href="javascript:history.go(-1);">{language text="go_back"}</a></div> <br /> <br />
		{else}
		<br />
        <div style="padding-left:20px;">
            <div style="padding:20px;">
            	{language text="below_is_a_list_of_all_crush_alerts"}
           	<br /><br />
			<form method="post" action="{$sUrl}" style="margin:0px;">
			<input type="hidden" name="sbm" value="1" />
			{language text="get_user_crush_inbox"}:
			<input type="text" name="user_name" value="{$sUser}" onfocus="this.value='';" size="20" />
			<input type="submit" name="act[crush_set_user]" value=" {language text="submit"} " />
			</form>
           	</div>
           	{foreach from=$aAlerts item=aAlert}
           	<div class="border13">
				<div style="padding:6px;">
					<b>{language text="id_368"}: {$aAlert.id}</b>
					<div style="padding:6px;">
						<b>{language text="from_503"}:</b> <a href="{url link=public.user name=$aAlert.from}">{$aAlert.from}</a>
						<b>{language text="to"}:</b> <a href="{url link=public.user name=$aAlert.to}">{$aAlert.to}</a> <b>{language text="sent_on"}:</b>{$aAlert.time|date_format:$sDateFormat} <b>{language text="status"}:</b> {$aAlert.seen}
						<div style="padding:6px;">
						<a href="javascript:void(0);" onclick="javascript:document.getElementById('item_{$aAlert.id}').style.display='';">{language text="view_crush_message"}</a><br /><br />
							<div style="display:none;" id="item_{$aAlert.id}">{$aAlert.text}</div>
						</div>
					</div>
				</div>
			</div>
			<br />
           	{/foreach}
        </div>
        <br />
        {include file="$sRootPath/_blocks/pager.html"}
        <br />
        </td>
    </tr>
</table>

{/if}

        </td>
    </tr>
</table>
        </td>
    </tr>
</table>